package com.bojiu.lawsearch.lawsearch.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * @author: afdiao
 * @Date：2020/3/5 23:34
 * @Description:
 */
@ApiModel(value = "条例对象", description = "跟大标题关联下的条例明细")
@Table(name = "mst_rules")
@Data
public class Rule {

    @ApiModelProperty(value = "id", required = false)
    @Column(name = "id")
    @Id
    private Integer id;

    @ApiModelProperty(value = "条例正文", required = false)
    @Column(name = "body")
    private String body;

    @ApiModelProperty(value = "条例关联的大标题id", required = false)
    @Column(name = "titleId")
    private Integer titleId;

    /**
     * 条例的收藏数
     */
    @ApiModelProperty(value = "条例收藏个数", required = false)
    @Column(name = "collect_count")
    private Integer collectCount;

    @ApiModelProperty(value = "关联的官方标签的标签名", required = false)
    @Transient
    private String labelName;

    @ApiModelProperty(value = "手动标签名", required = false)
    @Transient
    private String private_Label;
}
